import rbtree.RBTree;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-09-04
 * Time: 20:48
 */
public class Test {
    public static void main(String[] args) {
        int[] array = new int[]{4,2,6,1,3,5,15,7,16,14};
        RBTree rbTree = new RBTree();
        for (int i = 0; i < array.length; i++) {
            rbTree.insert(array[i]);
        }

        System.out.println(rbTree.isRBTree());
        rbTree.inorder(rbTree.root);

    }

}
